/*
 * @Author: blak-kong
 * @Date: 2019-12-02 11:09:42
 * @Email: 546598185@qq.com
 */

const mongoose = require('mongoose');
const Schema = mongoose.Schema;

// Create Schema
const AboutSchema = new Schema({
    name: {
        type: String,
        required: true,
    },
    address: {
        type: String,
        required: true,
    },
    phone: {
        type: String,
        required: true,
    },
    email: {
        type: String,
        required: true,
    },
    content: {
        type: String,
        required: true
    },
    createTime: {
        type: Date,
        default: Date.now()
    }
});

module.exports = About = mongoose.model('abouts', AboutSchema);
